CFGPRT: Configure Output Port
Applicable to: UC6580, UM620 series, UM621 series, UM670A, UM680A, UM681A
Read Port Configuration
| Syntax | $CFGPRT,portID | |
|---|---|---|
| Example | $CFGPRT,1 | |
| Description | Read the receiver port configuration. The receiver outputs CFGPRT message after receiving this command. |
|
| Input/Output | Input | |
| Parameter Definition | ||
| Parameter | Format | Description |
| portID | UINT | Port number: 0, 1, 2, 4 |
Set/Output Port Configuration
| Syntax | $CFGPRT,portID,addr,baud,inPro,outPro | |
|---|---|---|
| Example | $CFGPRT,1,0,115200,1,3 | |
| Description | Set or output the port configuration. | |
| Input/Output | Input/output | |
| Parameter Definition | ||
| Parameter | Format | Description |
| portID | UINT | Port number: 0 - I2C* 1 - UART1 2 - UART2* 4 - SPI* If empty, configure the current port. |
| addr | UINT | UART - fixed at 0 or null I2C - slave address1; fixed at 0x46 when inquiring and must be null when configuring, otherwise it would return FAIL. |
| baud | UINT | For UART, the baud rate could be set as: 9600/14400/19200/38400/57600/115200/230400/460800/921600 For I2C, the parameter is null while inquiring and must be null while configuring, otherwise it would return FAIL. |
| inPro | UINT | Port input protocol; set the corresponding bit to 1 to enable it: bit0 - UNICORE bit7 - RTCM3.3 (compatible with RTCM3.2) bit10 – MAPFB and ODODATA input protocol (applicable to UM621 series and UM681A) |
| outPro | UINT | Port output protocol; set the corresponding bit to 1 to enable it: bit0 - UNICORE bit1 - NMEA bit2 - RTCM3.3 (compatible with RTCM3.2) bit5 - Notice messages bit7 - Extended RTCM 4074_DR messages (applicable to UM621 series and UM681A) bit8 - Extended RTCM 4074_PVT messages (applicable to UC6580, UM670A and UM680A) |
If you need to output a message at a higher rate, such as 10 Hz, increase the baud rate. Otherwise, incomplete satellite information may appear.
Do not disable the UNICORE input, otherwise it can cause an abnormal command receiving and returns FAIL.
*. I2C and SPI interfaces are only supported by the specific firmware; if your firmware does not support I2C and SPI, this message will return $FAIL,0*1E when you set or make an inquiry. UART2 is not supported by UM670A. ↩
1. The default slave address is 0x46 which cannot be changed via commands. ↩